import React, { PureComponent } from 'react';
import {  View, Text } from 'react-native';
import { inject,observer } from "mobx-react";
@inject("RootStore")
@observer
export default class Tet extends PureComponent {
  
  handleChangeName=()=>{
    this.props.RootStore.changeName("bajie");
  }

  render() {
    return (
      <View>
        <Text onPress={this.handleChangeName}>{this.props.RootStore.name}</Text>
      </View>
    );
  }
}

